package physics
{
    import org.papervision3d.core.math.Number3D;
    
    public class Number3DPlus
    {

    // <PLUS> 
    public static function multiply(v:Number3D,w:Number):Number3D
    {
        return new Number3D
        (
            v.x*w,
            v.y*w,
            v.z*w
        );
    }
    
    public static function divide(v:Number3D,w:Number):Number3D
    {
        if(w!=0)
        {
            return new Number3D
            (
                v.x/w,
                v.y/w,
                v.z/w
            );
        }
        else
        {
            return new Number3D
            {
                0,0,0
            };
        }
    }
    //  </ PLUS> 
    }
}